<form id="propForm" method="POST" action="prop.php?act=edited" enctype="multipart/form-data">
<input type="hidden" id="id" name="id" value="<?php echo $prop_edit['id']; ?>" />
<table width="100%">
<tr>
<td>名称</td>
<td><input type="text" name="sName" id="sName" value="<?php echo $prop_edit['sName']; ?>" /></td>
</tr>
<tr>
<td>价格</td>
<td>
<select id="nPriceType" name="nPriceType">
<option value="0">选择价格类型</option>
<option value="1" <?php if($prop_edit['nPriceType'] == 1):?>selected="selected"<?php endif;?> >金币</option>
<option value="2" <?php if($prop_edit['nPriceType'] == 2):?>selected="selected"<?php endif;?> >虚拟币</option>
</select>
<input type="input" name="nPrice" id="nPrice" value="<?php echo $prop_edit['nPrice']; ?>" />
</td>
</tr>
<tr>
<td>折扣</td>
<td><input type="text" id="nRebate" name="nRebate" value="<?php echo $prop_edit['nRebate']; ?>" />（9.8折，默认为 1.0 即不打折）</td>
</tr>
<tr>
<td>类型</td>
<td>
<select id="nFun" name="nFun">
<option value="0">选择道具类型</option>
<option value="1" <?php if($prop_edit['nFun'] == 1):?>selected="selected"<?php endif;?>>+客人道具</option>
<option value="2" <?php if($prop_edit['nFun'] == 2):?>selected="selected"<?php endif;?>>+经验道具</option>
<option value="3" <?php if($prop_edit['nFun'] == 3):?>selected="selected"<?php endif;?>>+金币道具</option>
<option value="4" <?php if($prop_edit['nFun'] == 4):?>selected="selected"<?php endif;?>>进货加速</option>
<option value="5" <?php if($prop_edit['nFun'] == 5):?>selected="selected"<?php endif;?>>刑事道具</option>
<option value="6" <?php if($prop_edit['nFun'] == 6):?>selected="selected"<?php endif;?>>抽奖类</option>
<option value="7" <?php if($prop_edit['nFun'] == 7):?>selected="selected"<?php endif;?>>增益类</option>
</select>
</td>
</tr>
<tr>
<td>功效</td>
<td><input id="nRate" name="nRate" value="<?php echo $prop_edit['nRate']; ?>" /></td>
</tr>
<tr>
<td>道具说明</td>
<td><textarea id="sDescript" name="sDescript" rows="5" cols="40"><?php echo $prop_edit['sDescript']; ?></textarea></td>
</tr>
<tr>
<td>有效时间</td>
<td><input type="text" id="nValid" name="nValid" value="<?php echo $prop_edit['nValid']; ?>" />（单位为秒，0表示永久有效）</td>
</tr>
<tr>
<td>上下架</td>
<td>
<input type="radio" id="nOnShelf" name="nOnShelf" value="1" <?php if($prop_edit['nOnShelf'] == 1):?>checked="checked"<?php endif;?> />上架
<input type="radio" id="nOnShelf" name="nOnShelf" value="0" <?php if($prop_edit['nOnShelf'] == 0):?>checked="checked"<?php endif;?> />下架
</td>
</tr>
<tr>
<td>素材图片</td>
<td>
<img src="<?php echo PROP_URL.$prop_edit['sUrl']; ?>" border="0" width="100" height="100" /><br />
<input type="file" id="sUrl" name="sUrl" value="<?php echo $prop_edit['sName']; ?>" /></td>
</tr>
<tr>
<td></td>
<td align="left">
<input type="submit" value="编辑道具" />
<input type="button" onclick="window.location.href='prop.php?act=list'" value="返 回" size="15" />
</td>
</tr>
</table>
</form>